package com.gjy.design.observer.disruptor;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-08 09:13:50
 */
public abstract class Event {

    private final String topic;
    private final long timestamp;

    public Event(String topic) {
        this.topic = topic;
        this.timestamp = System.currentTimeMillis();
    }

    public String getTopic() {
        return topic;
    }

    public long getTimestamp() {
        return timestamp;
    }

}
